export interface AnchorVO {
  anchorId?: null | string;
  anchorName?: null | string;
  anchorShareType?: AnchorShareType;
  anchorType?: AnchorType;
  androidPackageName?: null | string;
  createTime?: null | string;
  iosPackageName?: null | string;
  source?: Source;
  status?: Status;

}

export enum AnchorType {
  AppGame = "APP_GAME",
  AppInternetService = "APP_INTERNET_SERVICE",
  AppShop = "APP_SHOP",
  Insurance = "INSURANCE",
  MicroApp = "MICRO_APP",
  MicroGame = "MICRO_GAME",
  OnlineSubscribe = "ONLINE_SUBSCRIBE",
  PrivateChat = "PRIVATE_CHAT",
  ShoppingCart = "SHOPPING_CART",
}

/**
 * 锚点共享关系
 */
export enum AnchorShareType{
  /**
   * 自有锚点
   */
  ownAnchor = "OWN_ANCHOR",
  /**
   * 共享锚点
   */
  SHARE_ANCHOR="SHARE_ANCHOR"

}

export enum Source {
  Auto = "AUTO",
  Custom = "CUSTOM",
  ReplaceDownload = "REPLACE_DOWNLOAD",
}

export enum Status {
  AuditFaild = "AUDIT_FAILD",
  AuditSuccess = "AUDIT_SUCCESS",
  Create = "CREATE",
  Delete = "DELETE",
}


export interface AnchorQuery extends PageQuery {

  /**
   * 管家账号id
   */
  accountId?: number;
  /**
   * 广告主id
   */
  advertiserId?: number;
  /**
   * 按原生锚点id 做过滤
   */
  anchorId?: string;
  /**
   * 按原生锚点名称做过滤
   */
  anchorName?: string;
  /**
   * 锚点审核状态，允许值：
   * 锚点新建：CREATE
   * 审核通过：AUDIT_SUCCESS
   * 审核不通过：AUDIT_FAILD
   */
  status?: string;

  /**
   * 日期范围参数
   */
  params?: any;
}



